package com.heima.apis.admin;

import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "敏感词管理",tags = "sensitive",description = "敏感词管理API")
public interface AdSensitiveControllerApi {
    @ApiOperation(value = "搜索名称分页查询")
    ResponseResult findByPageAndName(SensitiveDto sensitiveDto);

    @ApiOperation(value = "添加敏感词")
    ResponseResult insert(AdSensitive adSensitive);

    @ApiOperation(value = "更新敏感词")
    ResponseResult updates(AdSensitive adSensitive);

    @ApiOperation(value = "删除敏感词")
    ResponseResult delete(Integer id);
}
